﻿using System.ComponentModel.DataAnnotations;

namespace FYSJcrm.Core.Web.Areas.AdminManage.Models
{
    public class LoginModel
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "用户登陆密码不能为空")]
        public string Password { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "验证码不能为空")]
        [StringLength(4, MinimumLength = 4)]
        public string VerifyCode { get; set; }
    }
}
